package com.ruoyi.system.mapper;

import com.ruoyi.common.core.domain.entity.Institution;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface InstitutionMapper {

    /*
    查询所有机构
     */
    public List<Institution> selectAllInstitution(Institution institution);

    //通过机构ID查询机构
    public Institution selectInstitutionById(Long itId);

    //查询手机号码是否唯一
    public Long checkPhoneUnique(Institution institution);

    //添加机构
    public int addInstitution(Institution institution);

    //更新机构
    public int updateInstitution(Institution institution);

    //删除机构
    public int removeInstitution(Long itId);

    //通过机构管理员ID查询机构
    public Institution queryByUid(Long uId);
}
